package cn.sherer.beans.weixin;

/**
 * 微信用户手机号信息结果
 */
public class WxPhoneInfoResult extends WxResult {
    private WxPhoneInfo phone_info;

    public WxPhoneInfoResult() {
    }

    public WxPhoneInfoResult(int errcode, String errmsg) {
        super(errcode, errmsg);
    }

    public WxPhoneInfo getPhone_info() {
        return phone_info == null ? new WxPhoneInfo() : phone_info;
    }

    public void setPhone_info(WxPhoneInfo phone_info) {
        this.phone_info = phone_info;
    }

    @Override
    public String toString() {
        return "WxPhoneInfoResult{" + "errcode=" + this.getErrcode() + ", errmsg=" + this.getErrmsg() + ", phone_info=" + phone_info + "}";
    }
}
